#include<iostream>

using namespace std;
int a, b;

int main()
{
    cin >> a >> b;
    if (b || a == 2)
    {
        cout << "-" << endl;
        if (a == 1) cout << "move" << endl;
        else cout << "stop" << endl;
        return 0;
    }
    else{
        if (a == 1) cout << "dudu" << endl  << "move" << endl;
        else if (a == 0) cout << "biii" << endl << "stop" << endl;

    }
    return 0;
}